package com.ruoyi.pos.service.impl;

import com.ruoyi.pos.domain.PosDingdanItem;
import com.ruoyi.pos.domain.PosShangpinItem;
import com.ruoyi.pos.mapper.PosDingdanItemMapper;
import com.ruoyi.pos.service.IPosDingdanItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PosDingdanItemServiceImpl implements IPosDingdanItemService {
    @Autowired
    private PosDingdanItemMapper posDingdanItemMapper;
    @Override
    public int insertPosDingdanItem(PosDingdanItem posDingdanItem) {
        return posDingdanItemMapper.insertPosDingdanItem(posDingdanItem);
    }

    @Override
    public List<PosDingdanItem> selectPosDingdanItem(PosDingdanItem posDingdanItem) {
        return posDingdanItemMapper.selectPosDingdanItem(posDingdanItem);
    }

    @Override
    public PosDingdanItem selectPosDingdanItemById(Integer id) {
        return posDingdanItemMapper.selectPosDingdanItemById(id);
    }
}
